//
//  Person.m
//  SwiftTest
//
//  Created by mac on 14/10/29.
//  Copyright (c) 2014年 zhouy. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Person.h"
#import "Person+AgePrint.h"

@implementation Person


+(id)alloc{
    Person * obj =[super alloc];
	
    [obj setAge:arc4random()];
    return obj;
}


@end

@implementation Person (AgePrint)


-(void)printAge{
    NSLog(@"myAge:%i",[self Age]);
}

@end